/**
 * 查询字典数据
 * @param keys
 * @returns {Promise<unknown>}
 */
export const getDictionaryList = async (proxy, keys, apiType) => {
  let res = await proxy.$api.call(
    'college.getOptionsDic',
    {
      keys: keys
    },
    {
      apiType: apiType
    }
  )
  if (!res.res) return {}
  return res
}

/**
 * 查询字典数据
 * @param keys
 * @returns {Promise<unknown>}
 */
 export const getCityTree = async (proxy) => {
  let res = await proxy.$api.call('college.getCityTree',)
  if (!res.res) return {}
  return res
}

/**
 * 证件类型
 */
export const IDTypeList = [
  {
    key: '1',
    name: '身份证'
  },
  {
    key: '2',
    name: '港澳居民居住证'
  },
  {
    key: '3',
    name: '台湾居民居住证'
  }
]

/**
 * 性别
 */
export const sexList = [
  {
    key: '1',
    name: '男'
  },
  {
    key: '2',
    name: '女'
  }
]

/**
 * 婚姻状况
 */
export const marriageList = [
  {
    key: 1,
    name: '已婚'
  },
  {
    key: 2,
    name: '未婚'
  }
]

/**
 * 户口性质
 */
export const nodeTypeList = [
  {
    key: 'countryside',
    name: '农村户口'
  },
  {
    key: 'city',
    name: '城镇户口'
  }
]

/**
 * 在职状态
 */
export const jobList = [
  {
    key: '1',
    name: '是'
  },
  {
    key: '2',
    name: '否'
  }
]

/**
 * 证件类型
 */
export const majorList = [
  {
    key: '1',
    name: '农林牧渔'
  },
  {
    key: '2',
    name: '资源环境与安全'
  },
  {
    key: '3',
    name: '能源动力与材料'
  },
  {
    key: '4',
    name: '土木建筑'
  },
  {
    key: '5',
    name: '水利工程'
  },
  {
    key: '6',
    name: '装备制造'
  },
  {
    key: '7',
    name: '生物与化工'
  },
  {
    key: '8',
    name: '轻工纺织'
  },
  {
    key: '9',
    name: '食品药品与粮食'
  },
  {
    key: '10',
    name: '交通运输'
  },
  {
    key: '11',
    name: '电子信息'
  },
  {
    key: '12',
    name: '医药卫生'
  },
  {
    key: '13',
    name: '财经商贸'
  },
  {
    key: '14',
    name: '旅游'
  },
  {
    key: '15',
    name: '文化艺术'
  },
  {
    key: '16',
    name: '新闻传播'
  },
  {
    key: '17',
    name: '教育与体育'
  },
  {
    key: '18',
    name: '公安与司法'
  },
  {
    key: '19',
    name: '公共管理与服务'
  }
]

export const batchList = [
  {
    key: '0',
    name: '待分配'
  },
  {
    key: '1',
    name: '2022秋'
  }
]

export const degreeList = [
  {
    key: '0',
    name: '开放本科'
  },
  {
    key: '1',
    name: '高起本'
  }
]
